package com.musemun.config;

import com.musemun.exception.MyDefineException;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Target({ElementType.TYPE,ElementType.FIELD,ElementType.PARAMETER,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy= MyDefineValidator.class)
public @interface MyDefineAnnotation {
    String message() default "roles 3(管理员),4(部门负责人),5(资产科人员),6(仓管员),7(文职人员),9(超级管理员)";
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
